{template "content","header"}
<div class="ui-header">
		<a href="{APP_PATH}" id="icoback" class="header-btn left-pos">返回</a>
		<h1 class="ui-title">我的消息</h1>
	</div>
	<div id="wrapper">
		<div class="clear">
			<ul class="ui-listview">
				{pc:get sql="SELECT * FROM phpcms_message WHERE send_to_id='$memberinfo[username]' ORDER BY messageid DESC" page="$page" return="data"} 
				{loop $data $r}
				<li><a href="{APP_PATH}index.php?m=member&c=mobile&a=messcon&id={$r[messageid]}" title="{$r[title]}" style="padding-left:10px;">
					<div class="">
						<h3>{$r[subject]}</h3>
						<p>{date('Y-m-d H:i:s',$r[message_time])}</p>
					</div>
					<span class="more"></span>
					</a>
				</li>
				{/loop}
			</ul>
			{/pc}
		</div>
		
		</div><!-- /wrapper -->
	</div>

		<script type="text/javascript">
			//js模拟滚动条
			var myScroll;
			function loaded() {
				var myscroll=new iScroll("wrapper",{hScrollbar:true, vScrollbar:true});
			}

			document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
			document.addEventListener('DOMContentLoaded', loaded, false);
		</script>

</body>
</html>

{template "content","footer"}